/**
 * Created by IntelliJ IDEA.
 * User: Liu Yuhong
 * Date: 12-10-25
 * Time: 下午5:05
 * Subpage tender page functions.
 */

$(function() {
	var menuGroups = [ {
		'menuId' : "conntsMenu",
		'menuTitle' : getLanMsg("0ec22230-100079"),
		'iconClass' : "account",
		'iconImg' : null,
		'needShow': bModuleEBPOrSCM_PU,
		'items' : [ {
			'itemId' : "tenderMenuItem1",
			'itemUrl' : "/ebvp/order/confirmlist?menuid=31",
			'itemName' : getLanMsg("0ec22230-100080"),
			'needShow': bModuleEBPOrSCM_PU,
			'callback': function() { window.location = "/ebvp/order/confirmlist?menuid=31"; return false; }
		}, {
			'itemId' : "tenderMenuItem2",
			'itemUrl' : "/ebvp/order/exestatuslist?menuid=32",
			'itemName' : getLanMsg("0ec22230-100081"),
			'needShow': bModuleSCM_PU && bStdVersion,
			'callback': function() { window.location = "/ebvp/order/exestatuslist?menuid=32"; return false; }
		}, {
			'itemId' : "tenderMenuItem3",
			'itemUrl' : "/ebvp/order/exeinfolist?menuid=33",
			'itemName' : getLanMsg("0ec22230-100082"),
			'needShow': bModuleSCM_PU,
			'callback': function() { window.location ="/ebvp/order/exeinfolist?menuid=33"; return false; }
		} ]
	} ];

    /* 左侧菜单栏 */
    $( "#columnLeft" ).UIColumnMenu({
        'menuGroups': menuGroups,
        'menuHeight': heigth,
        'singleGroup': true
    });
    
    $(function() {	
    	if(i==1){
			$( "#tenderMenuItem1" ).parents("ul").find(".current").removeClass("current");
			$( "#tenderMenuItem1" ).addClass("current");
    	}
    	if(i==2){
    		$( "#tenderMenuItem2" ).parents("ul").find(".current").removeClass("current");
    		$( "#tenderMenuItem2" ).addClass("current");
    	}
    	if(i==3){
    		$( "#tenderMenuItem3" ).parents("ul").find(".current").removeClass("current");
    		$( "#tenderMenuItem3" ).addClass("current");
    	}
    	
	 });
});
